package com.arpa.wms.domain.vo;


import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * 收货DTO
 * </p>
 *
 * @author LEO
 * @since 2020-08-04
 */
@Data
@ApiModel(value="ReceiveVO对象", description="收货")
public class ReceiveVO implements Serializable {


    @ApiModelProperty(value = "收货单号")
    private String code;

    @ApiModelProperty(value = "来源单号")
    private String sourceCode;

    @ApiModelProperty(value = "仓库code")
    private String warehouseCode;

    @ApiModelProperty(value = "仓库名称")
    private String warehouseName;

    @ApiModelProperty(value = "所属机构Code")
    private String groupCode;

    @ApiModelProperty(value = "所属机构名称")
    private String groupName;

    @ApiModelProperty(value = "入驻商")
    private String shipmentCode;

    @ApiModelProperty(value = "货主名称")
    private String shipmentName;

    @ApiModelProperty(value = "单据类型")
    private String type;

    @ApiModelProperty(value = "单据类型名称")
    private String typeName;

    @ApiModelProperty(value = "供应商Code")
    private String supplierCode;

    @ApiModelProperty(value = "供应商名称")
    private String supplierName;

    @ApiModelProperty(value = "客户Code")
    private String customerCode;

    @ApiModelProperty(value = "客户名称")
    private String customerName;

    @ApiModelProperty(value = "计划到货日期")
    @JSONField(format="yyyy-MM-dd")
    private LocalDate gmtPlanArrival;

    @ApiModelProperty(value = "总数量")
    private BigDecimal totalQuantity;

    @ApiModelProperty(value = "收货数量")
    private BigDecimal receivedQuantity;

    @ApiModelProperty(value = "上架数量")
    private BigDecimal putawayQuantity;

    @ApiModelProperty(value = "入库数量")
    private BigDecimal inboundQuantity;

    @ApiModelProperty(value = "状态")
    private String status;

    @ApiModelProperty(value = "状态名称")
    private String statusName;

    @ApiModelProperty(value = "原出库单号(ERP分配)")
    private String preDeliveryOrderCode;

    @ApiModelProperty(value = "备注")
    private String remarks;

    @ApiModelProperty(value = "下发状态:0未下发，1已下发；")
    private Integer issue;

    @ApiModelProperty(value = "总数")
    private Long total;

    @ApiModelProperty(value = "创建人")
    private String createdBy;

    @ApiModelProperty(value = "创建人")
    private String createdName;

    @ApiModelProperty(value = "创建人")
    private String modifiedBy;

    @ApiModelProperty(value = "修改人")
    private String modifiedName;

    @ApiModelProperty(value = "创建时间")
    @JSONField(format="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime gmtCreated;

    @ApiModelProperty(value = "修改时间")
    @JSONField(format="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime gmtModified;

    @ApiModelProperty(value = "明细")
    private List<ReceiveItemVO> receiveItemVOList = new ArrayList<>();

    @ApiModelProperty(value = "带明细的登记信息列表")
    private List<ReceiveItemWithRegisterVO> receiveItemWithRegisterVOList;

    @ApiModelProperty(value = "明细总数")
    private Long itemTotal;

    @ApiModelProperty(value = "面单号")
    private String waybillCode;
}
